#ifndef ATTENDSTATUS_H
#define ATTENDSTATUS_H

#include <QWidget>
#include<QPainter>

enum AttendType{
    NATIVE,     // 活跃
    MAN,        // 男
    CITY,       //城市
    ZERO        // 00后
};

namespace Ui {
class AttendStatus;
}

class AttendStatus : public QWidget
{
    Q_OBJECT

public:
    explicit AttendStatus(QWidget *parent = nullptr);
    ~AttendStatus();

    void setValue(int type,int value);
signals:
    void signal_attendStatus(int type,int sum,int value); //考勤情况信号
protected:
    void paintEvent(QPaintEvent* event);
private:
    Ui::AttendStatus *ui;
    int native_num;
    int man_num;
    int city_num;
    int zero_num;
    int type = NATIVE;  //类型

};

#endif // ATTENDSTATUS_H
